package com.ruoyi.boat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_command
 * 
 * @author ruoyi
 * @date 2024-03-23
 */
@Data
@Accessors(chain = true)
public class TCommand extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    private Integer serialNum;

    private String boatCode;

    /** 指令类型 */
    @Excel(name = "指令类型")
    private Integer commandType;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** 下发结果 */
    @Excel(name = "下发结果")
    private Integer result;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommandType(Integer commandType)
    {
        this.commandType = commandType;
    }

    public Integer getCommandType()
    {
        return commandType;
    }
    public void setSendTime(Date sendTime) 
    {
        this.sendTime = sendTime;
    }

    public Date getSendTime() 
    {
        return sendTime;
    }
    public void setResult(Integer result)
    {
        this.result = result;
    }

    public Integer getResult()
    {
        return result;
    }

    public Integer getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(Integer serialNum) {
        this.serialNum = serialNum;
    }


    public String getBoatCode() {
        return boatCode;
    }

    public void setBoatCode(String boatCode) {
        this.boatCode = boatCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commandType", getCommandType())
            .append("sendTime", getSendTime())
            .append("result", getResult())
            .toString();
    }
}
